package com.cdu.guoxinan.www.smartcom.controller;

import com.cdu.guoxinan.www.smartcom.service.RoomTypeService;
import com.cdu.guoxinan.www.smartcom.unit.model.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/roomType")
@Api(tags = "户型控制器")
public class RoomTypeController {
    @Resource
    private RoomTypeService roomTypeService;
    @GetMapping("/queryAll")
    @ApiOperation("查询所有户型信息:用于下拉框渲染")
    public R queryAll() {
        return R.ok(roomTypeService.queryAll());
    }
}
